<h1>添加新用户</h1>
<div class="depot-form">

  <%= error_messages_for 'user' %>

  <fieldset>
    <legend>请添加用户信息</legend>

    <% form_for :user do |form| %>
      <p>
        <label for="user_name">姓名：</label>
        <%= form.text_field :name, :size => 30 %>
      </p>

      <p>
        <label for="user_password">密码：</label>
        <%= form.password_field :password, :size => 30 %>
      </p>

      <%= submit_tag "添加", :class => "submit" %>

    <% end %>
  </fieldset>
</div>
